home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Suzy B Software 2
/
Suzy B Software CD-ROM 2 (1994).iso
/
extras
/
programm
/
gemfsc19
/
gemfsc19.lzh
/
GEMFUNCS
/
OBJXTUTL.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-05-07
|
847b
|
29 lines
/**************************************************************************
* OBJXTUTL.C - Functions for dealing with extended object types.
*************************************************************************/
#include "gemfintl.h"
/*-------------------------------------------------------------------------
* obj_xtfind - Return index of object with specified extended object type.
*-----------------------------------------------------------------------*/
short obj_xtfind(ptree, parent, xtype)
register OBJECT *ptree;
register short parent;
register char xtype;
{
register short curobj;
curobj = ptree[parent].ob_head;
while(curobj != parent && curobj != NO_OBJECT) {
if (xtype == OBXTYPE(&ptree[curobj])) {
return curobj;
}
curobj = ptree[curobj].ob_next;
}
return NO_OBJECT;
}